package com.lintf.starter.admin;

import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lin tingfeng
 * @ system Mac
 * @ data 2025/6/6 16:14
 * @ package_name com.lintf.starter.admin
 * @ project_name my-diy-project
 * @ desc
 */
@RestController
public class BusinessController {

    @Resource
    private BusinessService businessService;

    @GetMapping("/handleUser")
    public String handleUser(@RequestParam("userId") Long userId) {
        businessService.handleUser(userId);
        return "User handled successfully";
    }

}
